﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Admin.Master" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>

<%@ Import Namespace="ThietBiSo.LinQDB" %>
<%@ Import Namespace="ThietBiSo.Models" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Website - bảng điều khiển
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <%
        string v = (string)ViewData["footers"];
    %>
    <% using (Html.BeginForm("index", "footer", FormMethod.Post, new { @enctype = "multipart/form-data" }))
       { %>
    <%: Html.ValidationSummary(true)%>
    <table width="100%" cellpadding="2" cellspacing="0" border="0">
        <tr>
            <td>
                <input type="submit" value="Lưu" class="btn" />
            </td>
        </tr>
        <tr>
            <td>
                <%= Html.TextArea("ChiTiet", System.Net.WebUtility.HtmlDecode(v))%>
            </td>
        </tr>
    </table>
    <script type="text/javascript">

        CKEDITOR.replace('ChiTiet',
             {
                 htmlEncodeOutput: true,
                 enterMode: CKEDITOR.ENTER_BR,
                 filebrowserImageBrowseUrl: '/ckfinder/ckfinder.html?type=Images',
                 filebrowserImageUploadUrl: '/ckfinder/core/connector/aspx/connector.aspx?command=QuickUpload&type=Images'
             });
          
    </script>
    <%} %>
</asp:Content>
